<template>
  <div class="dataActive">
    <div class="listMain ">
      <div class="title flex jc-sb">
        <div class="lineDiv flex ai-c">
          <div class="lableDiv">数据模板选择：</div>
          <Select v-model="tSel" style="width:300px;text-align:left;">
            <Option value="1">全部</Option>
          </Select>
        </div>
        <Button type="primary">通过本页</Button>
      </div>
      <Table stripe :columns="columnsT" :data="dataT"></Table>
      <div class="centerPage flex jc-c">
        <Page :total="100" show-sizer show-elevator />
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data () {
      return {
        tSel:"1",
        columnsT:[
          {
            title: '编号',
            align: 'center',
            key: 'no'
          },
          {
            title: 'URL',
            align: 'center',
            key: 'tname'
          },
          {
            title: '商品名称',
            align: 'center',
            key: 'lastName'
          },
          {
            title: '价格',
            align: 'center',
            key: 'tType'
          },
          {
            title: '店铺名称',
            align: 'center',
            key: 'grade'
          },
          {
            title: '评论总数',
            align: 'center',
            key: 'segment'
          },
          {
            title: '选购指数',
            align: 'center',
            key: 'platform'
          },
          {
            title: '店铺类型',
            align: 'center',
            key: 'category'
          },
          {
            title: '提交时间',
            align: 'center',
            key: 'demandSource'
          },
          {
            title: '操作',
            key: 'action',
            align: 'center',
            // fixed: 'right',
            width: 150,
            render: (h, params) => {
              return h('div', [
                h('span', {
                  style:{
                    color:"#5272E2",
                    cursor: "pointer",
                    padding:"0 5px"
                  },
                  props: {
                    type: 'text',
                    size: 'small'
                  },
                  on: {
                    click: () => {
                      
                    }
                  }
                }, '数据打回')
              ]);
            }
          }
        ],
        dataT:[
          {
            no: '1',
            tname: '京东商品详情模板',
            lastName: '2021/11/11',
            tType: '子模板',
            grade: '10',
          },
        ],
      }
    },
    mounted(){
      
    },
    methods: {
      
    }
  }
</script>

<style lang="scss" scoped>
  .dataActive{
    background-color: #F5F5F5;
    padding: 30px;
    .listMain{
      width: 100%;
      height: calc(100vh - 120px);
      box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
      background-color: #fff;
      padding: 20px;
      overflow-y: scroll;
      position: relative;
      .title{
        padding: 0 0 20px;
        .lineDiv{
          padding-bottom: 20px;
          .lableDiv{
            font-size: 14px;
            font-family: 'SourceHanSansCN-Medium, SourceHanSansCN';
            font-weight: 500;
            color: #333333;
            width: 100px;
            text-align: right;
            flex: 0 0 100px;
          }
        }
      }
      .centerPage{
        padding: 20px 0;
      }
    }
  }
</style>
